import React, { PureComponent } from "react"
import Far from "./components/Far"

export default class App extends PureComponent {
  render() {
    const ref = React.createRef()
    return (
      <>
        <h1 ref={ref}>app组件</h1>
        <Far></Far>
        <button
          onClick={() => {
            console.log(ref)
          }}
        >
          按钮
        </button>
      </>
    )
  }
}
